package com.hafu.service;

import com.hafu.dao.GysInfoDao;
import com.hafu.model.GysInfo;

import java.util.ArrayList;

public class GysInfoService {

    private GysInfoDao gysInfoDao = new GysInfoDao();

    public boolean addGysInfo(GysInfo gysInfo)
    {
        return gysInfoDao.addGysInfo(gysInfo);
    }

    public ArrayList<GysInfo> getGysInfoByName(GysInfo gysInfo)
    {
        return gysInfoDao.getGysInfoByName(gysInfo);
    }

    public boolean deleteGysInfo(int id)
    {
        return gysInfoDao.deleteGysInfo(id);
    }

    public boolean updateGysInfo(GysInfo gysInfo)
    {
        return gysInfoDao.updateGysInfo(gysInfo);
    }
}
